import request from '@/utils/request'

// 查询报验撤销原因列表
export function listCancelReason(query) {
  return request({
    url: '/gcxt/cancelreason/list',
    method: 'get',
    params: query
  })
}

// 新增报验撤销原因
export function addCancelReason(data) {
  return request({
    url: '/gcxt/cancelreason/add',
    method: 'post',
    data: data
  })
}

// 修改报验撤销原因
export function updateCancelReason(data) {
  return request({
    url: '/gcxt/cancelreason/edit',
    method: 'post',
    data: data
  })
}

// 删除报验撤销原因
export function delCancelReason(id) {
  return request({
    url: '/gcxt/cancelreason/delete',
    method: 'post',
    data: { fid: id }
  })
}

